package com.wframe.project.jnd.services.impl;


import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.frame.database.JdataBean;
import com.wframe.project.jnd.dao.AddressDao;
import com.wframe.project.jnd.services.AddressService;

@Service
public class AddressServiceImpl implements AddressService{

	@Autowired
	AddressDao addressDao;
	
	public List<Map> queryAddress(String userid){
		return addressDao.queryAddress(userid);
	}
	public void saveAddress(JdataBean bean) throws Exception{
		addressDao.saveAddress(bean);
	}
	public void delAddress(String userid,String id){
		addressDao.delAddress(userid, id);
	}
	public void setDefaultAddress(String userid,String id){
		addressDao.setDefaultAddress(userid, id);
	}
	public JdataBean getCompanyAddress(String userid){
		return addressDao.getCompanyAddress(userid);
	}
}
